#ifndef _MQTT_CLIENT_H_
#define _MQTT_CLIENT_H_

#include "stm32f4xx_hal.h"

#define WIFI_NAME            "xjjq"
#define WIFI_PASSWD          "xjjq002714"
#define MQTT_BROKERADDRESS   "aqyrklp.iot.gz.baidubce.com"
#define MQTT_CLIENTID        "STM32F407ZGT6"
#define MQTT_USARNAME        "thingidp@aqyrklp|STM32F407ZGT6|0|MD5"
#define MQTT_PASSWD          "ecba3368c17c2a48e6bd352cfdb652c5"
#define MQTT_SUBSCRIBE_TOPIC "msg"
#define MQTT_PUBLISH_TOPIC   "events"

void MQTT_Client_Init(void);
void ES8266_MQTT_Init(void);
void deal_MQTT_message(uint8_t* buf,uint16_t len);
void STM32_send_message(void);

#endif
